#include "fmt/core.h"
#include "network/fd.hpp"

using namespace ibox::network;

int main() {
    Fd fd{12};
    fmt::print("fd.get() = {}\n", fd.get());
    fd.close();

    int closed_fd = -1;
    {
        Fd fd2(24, [&](int v) { closed_fd = v; });
    }
    fmt::print("closed_fd = {}\n", closed_fd);
}
